<template>
  <div class="App">
    <h1 class="content">我是App</h1>
    <input type="text" ref="iptEle"/>
    <button @click="getMsg">获取输入框的值</button>
    <Cont />
   </div>
</template>

<script>
import Cont from '@/components/Cont';

export default {
  name: 'App',
  components: {
    Cont,
  },
  methods:{
    getMsg(){
      console.log(this);
      console.log(this.$refs.iptEle.value);
    }
  }
}
</script>

<style scoped>
.App {
  border: 1px solid #000;
}
.content {
  background: skyblue;
}
.App >>> .count {
  background: pink;
}
</style>
